<div class="container_wrapper account_default_default" id="account_default">

    <h1 class="title">{{lang.account.default.account}}</h1>

    <div class="describe-box">
        <div class="describe-box-title">{{lang.account.default.welcome}},{{customerInfo.first_name}} {{customerInfo.last_name}}</div>
        <div class="describe-box-label">{{customer.email}}</div>
    </div>
    <div class="account_default_link">
        <div class="account_default_link_wapper">
            <a href="{{routes.account_orders_url}}" class="secondary_btn">{{lang.account.default.orders | upcase }}</a>
            <a href="{{routes.account_addresses_url}}" class="secondary_btn">{{lang.account.default.address | upcase }}</a>
            <a href="/account/profilechange" class="secondary_btn">{{lang.account.default.profile | upcase }}</a>
            <a href="{{routes.account_changepassword_url}}" class="secondary_btn">{{lang.account.default.change_password | upcase }}</a>
            <a class="secondary_btn" id='out'>{{lang.account.default.sing_out | upcase }}</a>
        </div>
    </div>
</div>

<script type="text/javascript">

    (function () {

        $("#out").click(function () {
            const self = this;
            moi.confirm({
                title: '{{lang.account.default.sing_out_tips}}',
                ok: function () {
                    moi.href('/account/logout');

                    // moi.ajax({
                    //     url:'/account/logout',
                    //     type:'get',
                    //     success: function (data) {
                    //         moi.delCookie('Token')
                            
                    //     }
                    // })
                }
            })

        });
    })();
</script>